<?php
class modProductsSliderHelper
{
	static function getList(&$params)
	{
		$list		= array();
		$db = JFactory::getDbo();
		$sql="select id,name,thumbnail from yyi_products where is_commend=1 and thumbnail!='' order by updated_date desc";
		$db->setQuery($sql,0,18);//取18个记录
		return $db->loadRowList() ;
	}
}
?>